
import Layout from '@/layout';

const serviceRouter = {
  path: '/services',
  component: Layout,
  redirect: '/services/index',
  name: 'Services',
  meta: {
    title: '客服',
    icon: 'clipboard',
  },
  children: [
    {
        path: 'index',
        component: () => import('@/views/services/chatting/index'),
        name: 'ServicesIndex',
        meta: { title: '即时会话', icon: '' },
    },
    {
        path: 'record',
        component: () => import('@/views/services/record/index'),
        name: 'servicesRecord',
        meta: { title: '历史会话', icon: '' },
    },
    {
        path: 'manager',
        component: () => import('@/views/services/manager/index'),
        name: 'servicesManager',
        meta: { title: '客服管理', icon: '' },
    },
    {
      path: 'setting',
      component: () => import('@/views/services/setting/index'),
      name: 'servicesSetting',
      meta: { title: '客服设置', icon: '' },
    },
    {
      path: 'statistics',
      component: () => import('@/views/services/statistics/index'),
      name: 'servicesStatistics',
      meta: { title: '数据统计', icon: '' },
    },
    {
      path: 'customer',
      component: () => import('@/views/services/customer/index'),
      name: 'servicesCustomer',
      meta: { title: '客户管理', icon: '' },
    },
  ]
}

export default serviceRouter;